home *** CD-ROM | disk | FTP | other *** search
- Path: cheese.engr.ucdavis.edu!kvankatw
- From: kvankatw@cheese.engr.ucdavis.edu (Kirk Van Katwyk)
- Newsgroups: comp.lang.c,comp.sys.hp.hpux,gnu.gcc.help
- Subject: printf(), Inf/NaN & HP-UX
- Date: 23 Jan 1996 18:49:27 GMT
- Organization: Integration Engineering Lab, UC Davis
- Message-ID: <4e3ajn$ang@mark.ucdavis.edu>
- NNTP-Posting-Host: cheese.engr.ucdavis.edu
- Summary: How do I print out Inf/NaN's on HP-UX?
- Keywords: Inf, NaN, HP-UX, printf()
- X-Newsreader: TIN [version 1.2 PL2]
-
- Is there a way to print out "Inf" and "NaN" on HP-UX?
-
- We compiled the code below on SunOS using GNU's gcc and the
- output is
-
- f = Inf
- f = NaN
-
- On HP-UX, the output is
-
- f = ++.000000
- f = ?.000000
-
- I know that this is not standardized, but is there a gcc option
- that we can set to print out "Inf" and "NaN" on HP-UX?
-
- Kirk.
- ====================================================================
- Kirk Van Katwyk Integration Engineering Laboratory
- kvankatw@engr.ucdavis.edu Mech & Aero Engineering Dept
- http://www.engr.ucdavis.edu/~kvankatw/ Univ of Calif, Davis
-